package com.jwell.panprovider.contract

import com.jwell.cargoapp.ui.base.IBaseView
import com.jwell.driverapp.tools.BaseSubscriber
import com.jwell.panprovider.entity.ForExportWaybillListDto
import com.jwell.panprovider.model.WaybillModel

/**
 * Created by 76577 on 2018/4/24.
 * 供应详情-运单列表
 */
class WaybillContract {
    interface View : IBaseView {
        fun showListData(data: List<ForExportWaybillListDto>, isFresh: Boolean)

        fun showListDataFailed(isFresh: Boolean, str: String)

    }

    interface Presenter {
        fun getListData(request: WaybillModel.RequestData)

    }

    interface Model {
        fun getListData(request: WaybillModel.RequestData, baseSubscriber: BaseSubscriber)
    }
}